<?php
/**
 * Created by PhpStorm.
 * User: fuyu
 * Date: 2018/6/26
 * Time: 上午10:55
 */

namespace App\Logic;


class ExportFactory
{
    const TYPE_WLN = 'wanliniu';

    public static $ALL_EXPORT_TYPES = [self::TYPE_WLN];

    /**
     * @var BaseExport
     */
    private static $exportObject;

    /**
     * @param $type
     * @return BaseExport
     */
    public static function create($type)
    {
        switch ($type) {
            case self::TYPE_WLN:
                self::$exportObject = new WlnExport();
        }
        return self::$exportObject;
    }

}